package com.example.b_308.myapplication.comment.utils;

/**
 * Created by B-308 on 2017/11/28.
 */
public class StringValidator {
    public static boolean isEmply(String string){
        return null == string || 0 == string.length();
    }
    public static boolean isNotEmply(String s){
        return !isEmply(s);
    }
    public static boolean isSimiller(String string1, String string2){
        if(isNotEmply(string1) && isNotEmply(string2) && string1.equals(string2)){
            return true;
        }
        return false;
    }
}
